package gov.pbc.nn.kjgl.maintenance.entity;

import gov.pbc.nn.core.entity.BaseEntity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 系统变更
 * 
 * @author Administrator
 * 
 */
@Entity
@Table(name = "T_SYS_CHANGE")
public class SysChange extends BaseEntity {

	private static final long serialVersionUID = -7696145439692210926L;

	@Column(name = "SYS_ID_", length = 60)
	private String sysId;
	@Column(name = "SYS_NAME_", length = 120)
	@PropertyDef(label = "系统名称")
	private String sysName;
	@Column(name = "DEPT_ID_", length = 60)
	private String deptId;
	@Column(name = "DEPT_NAME_", length = 512)
	@PropertyDef(label = "变更发起部门")
	private String deptName;
	@Column(name = "USERNAME_")
	private String username;
	@Column(name = "CNAME_", length = 60)
	@PropertyDef(label = "变更发起人")
	private String cname;
	@Column(name = "START_BY_BUSINESS_")
	@PropertyDef(label = "是否业务部门发起")
	private boolean startByBusiness;
	@Column(name = "DO_DATE_")
	@PropertyDef(label = "发起时间")
	private Date doDate;
	@Column(name = "CONTENT_", length = 1000)
	@PropertyDef(label = "变更内容")
	private String content;
	@Column(name = "SCHEME_", length = 2000)
	@PropertyDef(label = "变更方案")
	private String scheme;
	@Column(name = "SCHEME_ID_", length = 60)
	@PropertyDef(label = "方案文件")
	private String schemeId;

	@Column(name = "YWBMFZR_OPINION_", length = 512)
	@PropertyDef(label = "业务部门负责人意见")
	private String ywbmfzrOpinion;
	@Lob
	@Column(name = "YWBMFZR_SIGN_")
	@PropertyDef(label = "业务部门负责人盖章")
	private byte[] ywbmfzrSign;
	@Column(name = "YWBMFZR_DATE_")
	@PropertyDef(label = "业务部门负责人时间")
	private Date ywbmfzrDate;

	@Column(name = "JS_OPINION_", length = 512)
	@PropertyDef(label = "技术负责人意见")
	private String jsOpinion;
	@Lob
	@Column(name = "JS_SIGN_")
	@PropertyDef(label = "技术负责人盖章")
	private byte[] jsSign;
	@Column(name = "JS_DATE_")
	@PropertyDef(label = "技术负责人时间")
	private Date jsDate;

	@Column(name = "YUNWEIBMFZR_OPINION_", length = 512)
	@PropertyDef(label = "运维部门负责人意见")
	private String yunweibmfzrOpinion;
	@Lob
	@Column(name = "YUNWEIBMFZR_SIGN_")
	@PropertyDef(label = "运维部门负责人盖章")
	private byte[] yunweibmfzrSign;
	@Column(name = "YUNWEIBMFZR_DATE_")
	@PropertyDef(label = "运维部门负责人时间")
	private Date yunweibmfzrDate;
	@Column(name = "STATE_")
	@PropertyDef(label = "状态", description = "0:初始；5：审核中；10：审核通过；20：撤消")
	private int state;
	@Column(name = "FROM_PROBLEM_")
	@PropertyDef(label = "来自于问题")
	private boolean fromProblem;

	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	public String getSysName() {
		return sysName;
	}

	public void setSysName(String sysName) {
		this.sysName = sysName;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public Date getDoDate() {
		return doDate;
	}

	public void setDoDate(Date doDate) {
		this.doDate = doDate;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getScheme() {
		return scheme;
	}

	public void setScheme(String scheme) {
		this.scheme = scheme;
	}

	public String getSchemeId() {
		return schemeId;
	}

	public void setSchemeId(String schemeId) {
		this.schemeId = schemeId;
	}

	public String getYwbmfzrOpinion() {
		return ywbmfzrOpinion;
	}

	public void setYwbmfzrOpinion(String ywbmfzrOpinion) {
		this.ywbmfzrOpinion = ywbmfzrOpinion;
	}

	public byte[] getYwbmfzrSign() {
		return ywbmfzrSign;
	}

	public void setYwbmfzrSign(byte[] ywbmfzrSign) {
		this.ywbmfzrSign = ywbmfzrSign;
	}

	public Date getYwbmfzrDate() {
		return ywbmfzrDate;
	}

	public void setYwbmfzrDate(Date ywbmfzrDate) {
		this.ywbmfzrDate = ywbmfzrDate;
	}

	public String getJsOpinion() {
		return jsOpinion;
	}

	public void setJsOpinion(String jsOpinion) {
		this.jsOpinion = jsOpinion;
	}

	public byte[] getJsSign() {
		return jsSign;
	}

	public void setJsSign(byte[] jsSign) {
		this.jsSign = jsSign;
	}

	public Date getJsDate() {
		return jsDate;
	}

	public void setJsDate(Date jsDate) {
		this.jsDate = jsDate;
	}

	public String getYunweibmfzrOpinion() {
		return yunweibmfzrOpinion;
	}

	public void setYunweibmfzrOpinion(String yunweibmfzrOpinion) {
		this.yunweibmfzrOpinion = yunweibmfzrOpinion;
	}

	public byte[] getYunweibmfzrSign() {
		return yunweibmfzrSign;
	}

	public void setYunweibmfzrSign(byte[] yunweibmfzrSign) {
		this.yunweibmfzrSign = yunweibmfzrSign;
	}

	public Date getYunweibmfzrDate() {
		return yunweibmfzrDate;
	}

	public void setYunweibmfzrDate(Date yunweibmfzrDate) {
		this.yunweibmfzrDate = yunweibmfzrDate;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public boolean isStartByBusiness() {
		return startByBusiness;
	}

	public void setStartByBusiness(boolean startByBusiness) {
		this.startByBusiness = startByBusiness;
	}

	public boolean getFromProblem() {
		return fromProblem;
	}

	public void setFromProblem(boolean fromProblem) {
		this.fromProblem = fromProblem;
	}

}
